package com.itheima.edu.info.test;

public class test07 {

    public static void main(String[] args) {
        useCalculator((int a , int b)->{
            return a*b;
        });
    }

    public static void useCalculator(Calculator calculator) {
        int result = calculator.calc(10, 20);
        System.out.println("max"+result);
    }
}


interface Calculator {
    int calc(int a, int b);
}